package com.speak.sparkadminserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.speak.sparkadminserver.domain.NutRole;
import org.apache.ibatis.annotations.Select;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2023/2/17 21:31
 */
public interface NutRoleService extends IService<NutRole> {
    public boolean Save(NutRole user);

    /**
     * 添加用户身份
     * @param id
     * @return
     */
    public boolean SaveUserRole(Long id);

    /**
     * 查询用户角色id
     * @param userId
     * @return
     */
    public Long GetroleId(Long userId);
}
